//
//  LoginViewController.h
//  
//	注册页面
//

#import <UIKit/UIKit.h>

@class CTextField;
@class AgreementViewController;
@class CardSettingViewController;


@interface RegisterViewController : UIViewController <UITextFieldDelegate>
{
	CTextField*		phone;
	UILabel*		phoneError;
	CTextField*		email;
	UILabel*		emailError;
	CTextField*		pwd;
	UILabel*		pwdError;
	CTextField*		rePwd;
	UILabel*		rePwdError;
	UIButton*		finishRegBtn;
	UIView*			bgPanel;
	UIButton*		readAgreement;
	UIButton*		agreeBtn;
	BOOL			bAgree;
	
	AgreementViewController*	agreementViewController;
	CardSettingViewController*	cardSettingViewController;
}

@property (nonatomic, retain) IBOutlet CTextField*		phone;
@property (nonatomic, retain) IBOutlet UILabel*			phoneError;
@property (nonatomic, retain) IBOutlet CTextField*		email;
@property (nonatomic, retain) IBOutlet UILabel*			emailError;
@property (nonatomic, retain) IBOutlet CTextField*		pwd;
@property (nonatomic, retain) IBOutlet UILabel*			pwdError;
@property (nonatomic, retain) IBOutlet CTextField*		rePwd;
@property (nonatomic, retain) IBOutlet UILabel*			rePwdError;
@property (nonatomic, retain) IBOutlet UIButton*		finishRegBtn;
@property (nonatomic, retain) IBOutlet UIView*			bgPanel;
@property (nonatomic, retain) IBOutlet UIButton*		readAgreement;
@property (nonatomic, retain) IBOutlet UIButton*		agreeBtn;



//通过xib资源初始化视图控制器
//
+ (RegisterViewController*) InitFromXib;


//响应文本框开始编辑
- (IBAction) OnEditBegin: (id) sender;


//响应文本框编辑完毕
//
- (IBAction) OnEditEnd: (id) sender;


//响应"同意协议"按钮
//
- (IBAction) OnClick_Agreement: (id) sender;


//响应"阅读协议"按钮
//
- (IBAction) OnClick_ReadAgreement: (id) sender;


//响应“完成注册”按钮
//
- (IBAction) OnClick_FinishReg: (id) sender;

@end




